<?xml version="1.0" encoding="utf-8" ?>
<REPLACEMENT_SYSTEM>
	<!-- INPUTS section describes all inputs which can control selection of replacement items -->
	<INPUTS>
		<INPUT NAME="LIVERY" OPTIONS="7" />
	</INPUTS>

	<NAMES INPUT ="LIVERY">
		<NAME LIVERY="51" NAME="Livery 1" />
		<NAME LIVERY="52" NAME="Livery 2" />
		<NAME LIVERY="53" NAME="Livery 3" />
		<NAME LIVERY="54" NAME="Livery 4" />
		<NAME LIVERY="75" NAME="Full Carbon Fiber" />
		<NAME LIVERY="76" NAME="Black Bird" />
		<NAME LIVERY="77" NAME="Porsche 911 GT1 #25" />
		<NAME LIVERY="1" NAME="Preset Colour 1" />
		<NAME LIVERY="2" NAME="Preset Colour 2" />
		<NAME LIVERY="3" NAME="Preset Colour 3" />
		<NAME LIVERY="4" NAME="Preset Colour 4" />
		<NAME LIVERY="5" NAME="Preset Colour 5" />
		<NAME LIVERY="6" NAME="Preset Colour 6" />
		<NAME LIVERY="7" NAME="Preset Colour 7" />
		<NAME LIVERY="8" NAME="Preset Colour 8" />
		<NAME LIVERY="9" NAME="Preset Colour 9" />
		<NAME LIVERY="10" NAME="Preset Colour 10" />
		<NAME LIVERY="11" NAME="Preset Colour 11" />
		<NAME LIVERY="12" NAME="Preset Colour 12" />
		<NAME LIVERY="13" NAME="Preset Colour 13" />
		<NAME LIVERY="14" NAME="Preset Colour 14" />
		<NAME LIVERY="15" NAME="Preset Colour 15" />
		<NAME LIVERY="16" NAME="Preset Colour 16" />
		<NAME LIVERY="17" NAME="Preset Colour 17" />
		<NAME LIVERY="18" NAME="Preset Colour 18" />	
	</NAMES>

	<!-- DEPENDENCY section describes inputs which depend on each other in that only some combinations are permitted -->
	<!-- this will only be used in game for the menu system, and in the editor -->

	<!-- CONDITION sections define what to replace and when to replace it		-->
	<!-- They are used in the same way for all situations				-->
	
	<!-- Simple case - exterior paint effecting two materials -->

	<CONDITION LIVERY="1">
		<REPLACE MATERIAL="POR_RSR74_PAINT" NEWMATERIAL="Vehicles\_Paint_Colors\paint_porsche_black.mtx" />
		<REPLACE MATERIAL="POR_RSR74_PAINT_SKIN" NEWMATERIAL="Vehicles\_Paint_Colors\paint_porsche_black_skin.mtx" />
		<REPLACE MATERIAL="POR_RSR74_NUMBER" NEWMATERIAL="remove_numberplate" />
	</CONDITION>

	<CONDITION LIVERY="2">
		<REPLACE TEXTURE="COMMON_PAINT.dds" NEWTEXTURE="POR_RSR74_WHITE.dds" />
		<REPLACE MATERIAL="POR_RSR74_NUMBER" NEWMATERIAL="remove_numberplate" />
	</CONDITION>

	<CONDITION LIVERY="3">
		<REPLACE MATERIAL="POR_RSR74_PAINT" NEWMATERIAL="Vehicles\_Paint_Colors\paint_porsche_guards_red.mtx" />
		<REPLACE MATERIAL="POR_RSR74_PAINT_SKIN" NEWMATERIAL="Vehicles\_Paint_Colors\paint_porsche_guards_red_skin.mtx" />
		<REPLACE MATERIAL="POR_RSR74_NUMBER" NEWMATERIAL="remove_numberplate" />
	</CONDITION>

	<CONDITION LIVERY="4">
		<REPLACE MATERIAL="POR_RSR74_PAINT" NEWMATERIAL="Vehicles\_Paint_Colors\paint_porsche_arctic_silver.mtx" />
		<REPLACE MATERIAL="POR_RSR74_PAINT_SKIN" NEWMATERIAL="Vehicles\_Paint_Colors\paint_porsche_arctic_silver_skin.mtx" />
		<REPLACE MATERIAL="POR_RSR74_NUMBER" NEWMATERIAL="remove_numberplate" />
	</CONDITION>

	<CONDITION LIVERY="5">
		<REPLACE MATERIAL="POR_RSR74_PAINT" NEWMATERIAL="Vehicles\_Paint_Colors\paint_porsche_speed_yellow.mtx" />
		<REPLACE MATERIAL="POR_RSR74_PAINT_SKIN" NEWMATERIAL="Vehicles\_Paint_Colors\paint_porsche_speed_yellow_skin.mtx" />
		<REPLACE MATERIAL="POR_RSR74_NUMBER" NEWMATERIAL="remove_numberplate" />
	</CONDITION>

	<CONDITION LIVERY="6">
		<REPLACE MATERIAL="POR_RSR74_PAINT" NEWMATERIAL="Vehicles\_Paint_Colors\paint_porsche_aqua_blue.mtx" />
		<REPLACE MATERIAL="POR_RSR74_PAINT_SKIN" NEWMATERIAL="Vehicles\_Paint_Colors\paint_porsche_aqua_blue_skin.mtx" />
		<REPLACE MATERIAL="POR_RSR74_NUMBER" NEWMATERIAL="remove_numberplate" />
	</CONDITION>

	<CONDITION LIVERY="7">
		<REPLACE MATERIAL="POR_RSR74_PAINT" NEWMATERIAL="Vehicles\_Paint_Colors\paint_porsche_midnight_blue.mtx" />
		<REPLACE MATERIAL="POR_RSR74_PAINT_SKIN" NEWMATERIAL="Vehicles\_Paint_Colors\paint_porsche_midnight_blue_skin.mtx" />
		<REPLACE MATERIAL="POR_RSR74_NUMBER" NEWMATERIAL="remove_numberplate" />
	</CONDITION>

	<CONDITION LIVERY="8">
		<REPLACE MATERIAL="POR_RSR74_PAINT" NEWMATERIAL="Vehicles\_Paint_Colors\paint_porsche_racing_green.mtx" />
		<REPLACE MATERIAL="POR_RSR74_PAINT_SKIN" NEWMATERIAL="Vehicles\_Paint_Colors\paint_porsche_racing_green_skin.mtx" />
		<REPLACE MATERIAL="POR_RSR74_NUMBER" NEWMATERIAL="remove_numberplate" />
	</CONDITION>

	<CONDITION LIVERY="9">
		<REPLACE MATERIAL="POR_RSR74_PAINT" NEWMATERIAL="Vehicles\_Paint_Colors\paint_porsche_macadamia.mtx" />
		<REPLACE MATERIAL="POR_RSR74_PAINT_SKIN" NEWMATERIAL="Vehicles\_Paint_Colors\paint_porsche_macadamia_skin.mtx" />
		<REPLACE MATERIAL="POR_RSR74_NUMBER" NEWMATERIAL="remove_numberplate" />
	</CONDITION>

	<CONDITION LIVERY="10">
		<REPLACE MATERIAL="POR_RSR74_PAINT" NEWMATERIAL="Vehicles\_Paint_Colors\paint_porsche_meteor_grey.mtx" />
		<REPLACE MATERIAL="POR_RSR74_PAINT_SKIN" NEWMATERIAL="Vehicles\_Paint_Colors\paint_porsche_meteor_grey_skin.mtx" />
		<REPLACE MATERIAL="POR_RSR74_NUMBER" NEWMATERIAL="remove_numberplate" />
	</CONDITION>

	<CONDITION LIVERY="11">
		<REPLACE MATERIAL="POR_RSR74_PAINT" NEWMATERIAL="Vehicles\_Paint_Colors\paint_porsche_basalt_black.mtx" />
		<REPLACE MATERIAL="POR_RSR74_PAINT_SKIN" NEWMATERIAL="Vehicles\_Paint_Colors\paint_porsche_basalt_black_skin.mtx" />
		<REPLACE MATERIAL="POR_RSR74_NUMBER" NEWMATERIAL="remove_numberplate" />
	</CONDITION>

	<CONDITION LIVERY="12">
		<REPLACE MATERIAL="POR_RSR74_PAINT" NEWMATERIAL="Vehicles\_Paint_Colors\paint_porsche_nordic_gold.mtx" />
		<REPLACE MATERIAL="POR_RSR74_PAINT_SKIN" NEWMATERIAL="Vehicles\_Paint_Colors\paint_porsche_nordic_gold_skin.mtx" />
		<REPLACE MATERIAL="POR_RSR74_NUMBER" NEWMATERIAL="remove_numberplate" />
	</CONDITION>

	<CONDITION LIVERY="13">
		<REPLACE MATERIAL="POR_RSR74_PAINT" NEWMATERIAL="Vehicles\_Paint_Colors\paint_porsche_gt_silver.mtx" />
		<REPLACE MATERIAL="POR_RSR74_PAINT_SKIN" NEWMATERIAL="Vehicles\_Paint_Colors\paint_porsche_gt_silver_skin.mtx" />
		<REPLACE MATERIAL="POR_RSR74_NUMBER" NEWMATERIAL="remove_numberplate" />
	</CONDITION>

	<CONDITION LIVERY="14">
		<REPLACE MATERIAL="POR_RSR74_PAINT" NEWMATERIAL="Vehicles\_Paint_Colors\paint_porsche_malachit_green.mtx" />
		<REPLACE MATERIAL="POR_RSR74_PAINT_SKIN" NEWMATERIAL="Vehicles\_Paint_Colors\paint_porsche_malachit_green_skin.mtx" />
		<REPLACE MATERIAL="POR_RSR74_NUMBER" NEWMATERIAL="remove_numberplate" />
	</CONDITION>

	<CONDITION LIVERY="15">
		<REPLACE MATERIAL="POR_RSR74_PAINT" NEWMATERIAL="Vehicles\_Paint_Colors\paint_porsche_atlas_grey.mtx" />
		<REPLACE MATERIAL="POR_RSR74_PAINT_SKIN" NEWMATERIAL="Vehicles\_Paint_Colors\paint_porsche_atlas_grey_skin.mtx" />
		<REPLACE MATERIAL="POR_RSR74_NUMBER" NEWMATERIAL="remove_numberplate" />
	</CONDITION>

	<CONDITION LIVERY="16">
		<REPLACE MATERIAL="POR_RSR74_PAINT" NEWMATERIAL="Vehicles\_Paint_Colors\paint_porsche_creme_white.mtx" />
		<REPLACE MATERIAL="POR_RSR74_PAINT_SKIN" NEWMATERIAL="Vehicles\_Paint_Colors\paint_porsche_creme_white_skin.mtx" />
		<REPLACE MATERIAL="POR_RSR74_NUMBER" NEWMATERIAL="remove_numberplate" />
	</CONDITION>

	<CONDITION LIVERY="17">
		<REPLACE MATERIAL="POR_RSR74_PAINT" NEWMATERIAL="Vehicles\_Paint_Colors\paint_porsche_ruby_red.mtx" />
		<REPLACE MATERIAL="POR_RSR74_PAINT_SKIN" NEWMATERIAL="Vehicles\_Paint_Colors\paint_porsche_ruby_red_skin.mtx" />
		<REPLACE MATERIAL="POR_RSR74_NUMBER" NEWMATERIAL="remove_numberplate" />
	</CONDITION>

	<CONDITION LIVERY="18">
		<REPLACE MATERIAL="POR_RSR74_PAINT" NEWMATERIAL="Vehicles\_Paint_Colors\paint_nissan_matte_black.mtx" />
		<REPLACE MATERIAL="POR_RSR74_PAINT_SKIN" NEWMATERIAL="Vehicles\_Paint_Colors\paint_nissan_matte_black_skin.mtx" />
		<REPLACE MATERIAL="POR_RSR74_NUMBER" NEWMATERIAL="remove_numberplate" />
	</CONDITION>

	<CONDITION LIVERY="51">
		<REPLACE TEXTURE="COMMON_PAINT.dds" NEWTEXTURE="POR_RSR74_LIVERY01_HR.dds" />
		<REPLACE MATERIAL="POR_RSR74_NUMBER" NEWMATERIAL="remove_numberplate" />
	</CONDITION>

	<CONDITION LIVERY="52">
		<REPLACE TEXTURE="COMMON_PAINT.dds" NEWTEXTURE="POR_RSR74_LIVERY02_HR.dds" />
		<REPLACE MATERIAL="POR_RSR74_NUMBER" NEWMATERIAL="remove_numberplate" />
	</CONDITION>

	<CONDITION LIVERY="53">
		<REPLACE TEXTURE="COMMON_PAINT.dds" NEWTEXTURE="POR_RSR74_LIVERY03_HR.dds" />
		<REPLACE MATERIAL="POR_RSR74_NUMBER" NEWMATERIAL="remove_numberplate" />
	</CONDITION>

	<CONDITION LIVERY="54">
		<REPLACE TEXTURE="COMMON_PAINT.dds" NEWTEXTURE="POR_RSR74_LIVERY04_HR.dds" />
		<REPLACE MATERIAL="POR_RSR74_NUMBER" NEWMATERIAL="remove_numberplate" />
	</CONDITION>

	<CONDITION LIVERY="75">
		<REPLACE MATERIAL="POR_RSR74_PAINT" NEWMATERIAL="Vehicles\porsche_911rsr74\POR_RSR74_FULLCARBON.mtx" />
		<REPLACE MATERIAL="POR_RSR74_PAINT_SKIN" NEWMATERIAL="Vehicles\porsche_911rsr74\POR_RSR74_FULLCARBON.mtx" />
		<REPLACE TEXTURE="POR_RSR74_NUMBERPLATES1_DIFFUSE.dds" NEWTEXTURE="POR_RSR74_22-039_DIFFUSE.dds" />
		<REPLACE TEXTURE="POR_RSR74_NUMBERPLATES2_SPECULAR.dds" NEWTEXTURE="POR_RSR74_22-039_SPECULAR.dds" />
	</CONDITION>

	<CONDITION LIVERY="76">
		<REPLACE TEXTURE="COMMON_PAINT.dds" NEWTEXTURE="POR_RSR74_BLACK.dds" />
		<REPLACE TEXTURE="POR_RSR74_NUMBERPLATES1_DIFFUSE.dds" NEWTEXTURE="POR_RSR74_22-039_DIFFUSE.dds" />
		<REPLACE TEXTURE="POR_RSR74_NUMBERPLATES2_SPECULAR.dds" NEWTEXTURE="POR_RSR74_22-039_SPECULAR.dds" />
	</CONDITION>

	<CONDITION LIVERY="77">
		<REPLACE TEXTURE="COMMON_PAINT.dds" NEWTEXTURE="PORSCHE_911_GT1_1996.dds" />
                <REPLACE TEXTURE="COMMON_GLASS01_DIFFUSE.dds" NEWTEXTURE="PORSCHE_911_GT1_1996_windows.dds" />
                <REPLACE TEXTURE="COMMON_GLASS_INSIDE_DIFFUSE.dds" NEWTEXTURE="PORSCHE_911_GT1_1996_INT_windows.dds" />
                <REPLACE TEXTURE="por_rsr74_mis8_diffuse.dds" NEWTEXTURE="por_rsr74_blue_mirrors.dds" />
		<REPLACE MATERIAL="POR_RSR74_NUMBER" NEWMATERIAL="remove_numberplate" />
		<REPLACE MATERIAL="GENERIC_TREAD" NEWMATERIAL="GENERIC_TREAD_SLICK" />
		<REPLACE MATERIAL="GENERIC_TYRE" NEWMATERIAL="TYRE_HANKOOK_STAGE4" />
		<REPLACE TEXTURE="tire_hankook_stage4_diffuse_00.dds" NEWTEXTURE="TIRE_MICHELIN_PILOT_SX_DIFFUSE_00.dds" />
		<REPLACE TEXTURE="tire_hankook_stage4_diffuse_01.dds" NEWTEXTURE="TIRE_MICHELIN_PILOT_SX_DIFFUSE_01.dds" />
	</CONDITION>

</REPLACEMENT_SYSTEM>
